<!--{template admin/tpl/header}-->

<div class="mainarea">
	<div class="maininner">
	<!--{if $allowmanage}-->
	<div class="tabs_header">
		<ul class="tabs">
			<li $actives[all]><a href="admincp.php?ac=arctype"><span>栏目管理</span></a></li>
			<li $actives[add]><a href="###"><span>添加栏目</span></a></li>
			<li $actives[edit]><a href="###"><span>修改栏目</span></a></li>
		</ul>
	</div>
	<!--{/if}-->

<!--{if $_GET['op']=='add'||$_GET['op']=='edit'}-->
	<form method="post" action="admincp.php?ac=arctype">
	<div class="bdrcontent">
		<div class="cont">
			<div class="cont_name"><span class="cont_t">栏目名称：</span><input type="text" name="typename" value="$ap['typename']"/></div>
			<div class="cont_type">
				<span class="cont_t">栏目显示：</span>
				<label for="xs"><input type="radio" name="hide" value="0" id="xs" <!--{if $ap['hide']<1}-->checked="checked"<!--{/if}--> />显示</label>
				<label for="yc"><input type="radio" name="hide" value="1" id="yc" <!--{if $ap['hide']>0}-->checked="checked"<!--{/if}--> />隐藏</label>
			</div>
			<!--{if $_GET['op']=='add'}--><input type="hidden" name="reid" value="$reid" /><!--{/if}-->
			<!--{if $_GET['op']=='edit'}--><input type="hidden" name="lid" value="$lid" /><!--{/if}-->
			<input type="hidden" name="op" value="$op" />
			<div class="cont_submit"><input type="submit" name="arctypsubmit" value="提交" /><a href="admincp.php?ac=arctype">返回</a></div>
		</div>
	</div>
	</form>
<!--{else}-->
	<div class="rel_t"><a href="admincp.php?ac=arctype&op=add&reid=0">添加顶级栏目</a></div>
	<!--{if $html}-->
	<link href="admin/tpl/jquery.treeview.css" rel="stylesheet" type="text/css"/>
	<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
	<script language="javascript" src="source/jquery.cookie.js"></script>
	<script language="javascript" src="source/jquery.treeview.js"></script>
	<script type="text/javascript"> 
	$(function(){
		$("#arctype").treeview({
			collapsed: true,
		});
		$(".del").click(function(){
			var url = $(this).attr("ref");
			var del = confirm("确认删除该栏目？");
			if(del==true){
				window.location.href=url;
			}else{
				return false;
			}
		});
	});
	</script>
	<div class="bdrcontent">
		<ul id="arctype">
		$html
		</ul>
	</div>
	<!--{else}-->
	<div class="bdrcontent">
		<p>指定条件下还没有数据</p>
	</div>
	<!--{/if}-->

<!--{/if}-->

	</div>
</div>
<div class="side">
	<!--{template admin/tpl/side}-->
</div>

<!--{template admin/tpl/footer}-->